package com.yang.provider.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yang.provider.entity.Product;
import com.yang.common.dto.ResultVO;

import java.util.List;

public interface ProductService  {

    ResultVO<Integer> saveProduct(Product product);

    ResultVO<Integer> delProduct(Integer productId);

    ResultVO<List<Product>> listProducts(Product product);

    ResultVO<Page<Product>> pageProducts(Product product);

    ResultVO<Product> queryDetail(Long productId);

    ResultVO<Boolean> saveBatch(List<Product> productList);


}
